import request from "../axios/request";

function getAnnouncement(userId){
    return new Promise((resolve, reject) => {
        request('get', '/announcement/getAnnouncement', {
            userId: userId,
            pageSize: 5,
            pageNumber: 1
        })
            .then(res => {
                resolve(res)
            }, err => {
                reject(err)
            })
    })
}

export {
    getAnnouncement
}